package com.pureut.equipment.scheduling;

import com.pureut.equipment.api.RemoteEquimentService;
import com.sale.system.api.model.LoginUser;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/***
 * 免检管理定时器
 * Author:C
 * Date:2023/02/03 16:55
 * @DESC
 */

@Component
public class equipmentScheduling {

    @DubboReference
    RemoteEquimentService remoteEquimentService;

//    /**
//     * 设备定时任务
//     */
//    @Scheduled(cron = "0 0 2 * * ?")
//    public void ryNoParams() throws Exception {
//        //保养计划修改状态feign
//        remoteEquimentService.updateMaintenanceStatusByTime();
//        //点检计划修改状态feign
//        remoteEquimentService.updateInspectionStatusByTime();
//        //巡检计划修改状态feign
//        remoteEquimentService.updatePatrolStatusByTime();
//        //触发生成工单
//        remoteEquimentService.generationWorkOrder();
//    }
}
